package com.xdwanj.service.impl;

import com.xdwanj.dao.AdminUserDao;
import com.xdwanj.dao.impl.AdminUserDaoImpl;
import com.xdwanj.pojo.AdminUser;
import com.xdwanj.service.AdminUserService;

public class AdminUserServiceImpl implements AdminUserService {

    AdminUserDao adminUserDao = new AdminUserDaoImpl();

    @Override
    public AdminUser login(String username, String password) {
        AdminUser user = null;

        try {
            user = adminUserDao.findUserByUsernameAndPassword(username, password);
        } catch (Exception e) {
            e.printStackTrace();
        }

        return user;
    }
}
